<?php
header("content-type:text/html;charset=utf-8");
$filename = "1.jpg";
$data = file_get_contents($filename);
echo base64_encode($data);
?>